package com.bwda.dsrs.base.centerbase.request;

import com.bwda.dsrs.base.centerbase.BaseSerializable;

/**
 * @author yangjun
 * @date 2019/3/18
 */
public abstract class BaseRequest extends BaseSerializable {
    private String requestIp;
    private String systemSource;

    public void appendBaseRequest(String requestIp, String systemSource) {
        this.requestIp = requestIp;
        this.systemSource = systemSource;
    }

    public void checkParam() {
        ParamChecker.notBlank(this.requestIp, "requestIp 不能为空");
        ParamChecker.nonNull(this.systemSource, "systemSource 不能为空");
    }

    public BaseRequest() {
    }

    public String getRequestIp() {
        return this.requestIp;
    }

    public String getSystemSource() {
        return this.systemSource;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }

    public void setSystemSource(String systemSource) {
        this.systemSource = systemSource;
    }



    @Override
    public String toString() {
        return "BaseRequest(requestIp=" + this.getRequestIp() + ", systemSource=" + this.getSystemSource() + ")";
    }
}
